package com.hashmap;

import java.io.Serializable;
import java.util.Objects;

public class PokerTrue {
    private String painame ;
    private Integer level;// (0-53)

    public PokerTrue() {
    }

    public PokerTrue(String painame, Integer level) {
        this.painame = painame;
        this.level = level;
    }

    public String getPainame() {
        return painame;
    }

    public void setPainame(String painame) {
        this.painame = painame;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "PokerTrue{" +
                "painame='" + painame + '\'' +
                ", level=" + level +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        PokerTrue pokerTrue = (PokerTrue) o;
        return Objects.equals(painame, pokerTrue.painame) && Objects.equals(level, pokerTrue.level);
    }

    @Override
    public int hashCode() {
        return Objects.hash(painame, level);
    }
}
